import http from "@/utils/request";

// 首页
export const queryHome = (params = {}) => {
  return http.get("/Lottery/home.html", { params });
};

// 获取所有开奖日期
export const queryWinDate = (params = {}) => {
  return http.get("/Lottery/drawDates.html", { params });
};

// 彩票统计
export const queryLotStats = (params = {}) => {
  return http.get("/Lottery/stats.html", { params });
};

// 中奖检查
export const querychkNum = (params = {}) => {
  return http.get("/Lottery/checkPrize.html", { params });
};

// 新闻
export const queryNewsList = (params = {}) => {
  return http.get("/Lottery/news.html", { params });
};

// 查询新闻详情
export const queryNewsDtl = (id: string) => {
  return queryNewsList({
    id: id
  });
};
